
public class MyRunDad implements Runnable{
	@Override
	public void run() {
		MyRunSonOne r1 = new MyRunSonOne();
		MyRunSonTwo r2 = new MyRunSonTwo();
		
		Thread h1 = new Thread(r1);
		Thread h2 = new Thread(r2);
		
		h1.start();
		h2.start();
		
		try {
			h1.join();
		} catch (InterruptedException e) {}
		try {
			h2.join();
		} catch (InterruptedException e) {}
		System.out.println("Jugador 1 =" +r1.getJ1());
		System.out.println("Jugador 2 =" +r2.getJ2());
		System.out.println(ganador(r1.getJ1(),r2.getJ2()));
	}
	public String ganador(int n1, int n2){
		String x = "";
		if(n1 > n2) x = "Ganador el jugador 1";
		else if(n1 < n2) x = "Ganador el jugador 2";
		else x = "Empate CLARAMENTE";
		return x;
	}
}
